import React from 'react';
import {
  SafeAreaView,
  StyleSheet
} from 'react-native';
import App from './App';
import thunk from 'redux-thunk';
import createLogger2 from 'redux-logger';
import { createStore, applyMiddleware } from 'redux';
import Community from './Community'
import store from './store/Store';
import { Provider } from 'react-redux';
export default class Main extends React.Component {
  render() {
    return (
      <Provider store={store}>
        <SafeAreaView style={styles.safeArea}>
          <App />
        </SafeAreaView>
      </Provider>
    )
  }
}

const styles = StyleSheet.create({
  safeArea: {
    flex: 1,
    // backgroundColor: '#ddd'
  }
})
